package com.zijie.hosptal.mapper;

import com.zijie.hosptal.common.Result;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface ChartsMapper {

    @MapKey("day")
    List<Map<String, Object>> doctorSchedules(LocalDateTime date);

    @MapKey("day")
    List<Map<String, Object>> weekDoctor(LocalDateTime date);

    @MapKey("day")
    List<Map<String, Object>> weekReserve(LocalDateTime date);


    @MapKey("day")
    List<Map<String, Object>> weekPatient(LocalDateTime date);


    @MapKey("name")
    List<Map<String, Object>> getHotDoctor(LocalDateTime date);

    @MapKey("name")
    List<Map<String, Object>> getHotDoctorSchedules(LocalDateTime date);


    @MapKey("day")
    List<Map<String, Object>>   getReserveCount(LocalDateTime date);
}
